package com.itany.corejava.day08;

public class Test5 {

    public static void main(String[] args) {
        
        // String s="";

        // StringBuffer s=new StringBuffer();
        StringBuilder s=new StringBuilder();
        long start=System.currentTimeMillis();
        for (int i = 0; i < 99999; i++) {
            // s+=i;//32166
            s.append(i);//23   9
        }
        long end=System.currentTimeMillis();

        System.out.println(end-start);
        
        
    }
}
